package com.ruoyi.finance.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.finance.domain.TCwPaymentPlan;
import com.ruoyi.finance.mapper.TCwPaymentPlanMapper;
import com.ruoyi.finance.service.ITCwPaymentPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author wish
 * @date 2021-06-22
 */
@Service
public class TCwPaymentPlanServiceImpl implements ITCwPaymentPlanService
{
    @Autowired
    private TCwPaymentPlanMapper tCwPaymentPlanMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public TCwPaymentPlan selectTCwPaymentPlanById(Long id)
    {
        return tCwPaymentPlanMapper.selectTCwPaymentPlanById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tCwPaymentPlan 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TCwPaymentPlan> selectTCwPaymentPlanList(TCwPaymentPlan tCwPaymentPlan)
    {
        return tCwPaymentPlanMapper.selectTCwPaymentPlanList(tCwPaymentPlan);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tCwPaymentPlan 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTCwPaymentPlan(TCwPaymentPlan tCwPaymentPlan)
    {
        tCwPaymentPlan.setCreateTime(DateUtils.getNowDate());
        return tCwPaymentPlanMapper.insertTCwPaymentPlan(tCwPaymentPlan);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tCwPaymentPlan 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTCwPaymentPlan(TCwPaymentPlan tCwPaymentPlan)
    {
        tCwPaymentPlan.setUpdateTime(DateUtils.getNowDate());
        return tCwPaymentPlanMapper.updateTCwPaymentPlan(tCwPaymentPlan);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTCwPaymentPlanByIds(Long[] ids)
    {
        return tCwPaymentPlanMapper.deleteTCwPaymentPlanByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTCwPaymentPlanById(Long id)
    {
        return tCwPaymentPlanMapper.deleteTCwPaymentPlanById(id);
    }

    @Override
    public List<TCwPaymentPlan> findAll(TCwPaymentPlan tCwPaymentPlan) {
        return tCwPaymentPlanMapper.findAll(tCwPaymentPlan);
    }

    @Override
    public List<TCwPaymentPlan> findList(TCwPaymentPlan tCwPaymentPlan) {
        return tCwPaymentPlanMapper.findList(tCwPaymentPlan);
    }

    @Override
    public List<TCwPaymentPlan> billList(TCwPaymentPlan tCwPaymentPlan) {
        return tCwPaymentPlanMapper.billList(tCwPaymentPlan);
    }
}
